{template header}
<style>
	#content img{
        cursor: pointer;
        transition: all 0.6s;
    }
    #content img:hover{
        transform: scale(1.1);
    }
</style>
<div id="breadcrumb">
	<!-- breadcrumb starts-->
	<div class="container" style="width:86%;margin-left:7%">
		<div class="one-half">
			<h4>{$catname}</h4>
		</div>
		<div class="one-half">
			<nav id="breadcrumbs">
				<!--breadcrumb nav starts-->
				<ul>
					<li>您当前位置：</li>
					<!-- <li><a  href="{SITE_PATH}">首页</a> > {catpos($catid, ' &gt;&nbsp;&nbsp;')}</li> -->
					<li><a  href="{SITE_PATH}">首页</a> > {$catname}</li>
				</ul>
			</nav>
			<!--breadcrumb nav ends -->
		</div>
	</div>
</div>
<div id="content" style="margin-bottom: 20px;width: 100%;">
	<!--栏目循环== begin -->
	{loop $cats $c}
	{if $c['parentid']==$catid && $c['typeid']==1}
	<div style="width: 25%;text-align: center;float: left;margin-top: 10px;margin-bottom: 10px;">
		<!--不晓得为什么会把content里所有他的儿子文章也显示出来，判断只显示一个，就是父，只有159-->
		<!--或者判断c[catid]不等于t[catid]，就把159给筛选出去了，郁闷-->
		{php $a=0;}
		{list catid=$c[catid]}

		{if $c[catid]==159}
		{if $a<1}
		<div style="width: 100%;">
			<div style="width: 100%;text-align: center">
				<a href="{$t['url']}">
					<img src="{thumb($t['thumb'])}" style="width: 283px;height: 190px;" alt="{$t[title]}"/>
				</a>
			</div>
			<div style="height: 40px;line-height: 40px;">
				<a href="{$t['url']}" style="color: #169FE6;font-size: 16px;">{$t['title']}</a>
			</div>
		</div>
		{/if}
			{php $a++;}
		{else}
		<div style="width: 100%;">
			<div style="width: 100%;text-align: center">
				<a href="{$t['url']}">
					<img src="{thumb($t['thumb'])}" style="width: 283px;height: 190px;" alt="{$t[title]}"/>
				</a>
			</div>
			<div style="height: 40px;line-height: 40px;">
				<a href="{$t['url']}" style="color: #169FE6;font-size: 16px;">{$t['title']}</a>
			</div>
		</div>
		{/if}
				<!--"uploadfiles/image/201705/50.jpg"-->


			{/list}
	</div>
	{/if}
	{/loop}
	<!--栏目循环 end-->
</div>

{template footer}